const { Controller } = require('dx-router-admin');

module.exports = class Index extends Controller {
	constructor(ctx) {
		super(ctx);
	}
	// 列表
	async category() {
		const list = await this.$dx.service.category.select();
		return this.$dx.success('获取成功', list);
	}
    async template(body){
       const list = await this.$dx.service.material.getList(body);
        return this.$dx.success('获取成功',list)
    }
};
